home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 10 / Example 10.1 / building.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-06-30  |  676 b   |  31 lines

  1. #ifndef _RTS_BUILDING_
  2. #define _RTS_BUILDING_
  3.  
  4. #include "mapObject.h"
  5. #include "mesh.h"
  6. #include "debug.h"
  7. #include "terrain.h"
  8.  
  9. void LoadBuildingResources(IDirect3DDevice9* Device);
  10. void UnloadBuildingResources();
  11. bool PlaceOk(int buildType, INTPOINT mp, TERRAIN *terrain);
  12.  
  13. class BUILDING : public MAPOBJECT
  14. {
  15.     public:
  16.         BUILDING(int _type, int _team, INTPOINT mp, TERRAIN *_terrain, bool _affectTerrain, IDirect3DDevice9* Dev);
  17.         ~BUILDING();
  18.  
  19.         void Render();
  20.         void Update(float deltaTime);
  21.         BBOX GetBoundingBox();
  22.         D3DXMATRIX GetWorldMatrix();        
  23.  
  24.     private:
  25.  
  26.         BBOX m_BBox;
  27.         MESHINSTANCE m_meshInstance;
  28.         bool m_affectTerrain;
  29. };
  30.  
  31. #endif